import { post } from '@/api/requestApi'

const BASE_URL = '/api/CallBack/'

const API_URL = {
  UNIVERSAL_CALL_BACK: 'UniversalCallBack',  //  通用回调函数
}

for (const i in API_URL) {
  API_URL[i] = BASE_URL + API_URL[i]
}

/**
 * 通用回调函数
 * @param data
 * @returns {*}
 * @constructor
 */
export function CallBack(data) {
  return post(API_URL.UNIVERSAL_CALL_BACK, data)
}

